package com.leyou.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

import java.util.List;

/**
 * @version V1.0
 * @author: Ljxpa
 * @date: 2020/03/03 19:09
 * @description: 将配置文件中的cors配置信息读取到一个对象中
 */
@Data
@ConfigurationProperties(prefix = "ly.cors")
public class CorsFilterConfigProperties {
	private List<String> allowedOrigins;
	private Boolean allowCredentials;
	private List<String> allowedMethods;
	private List<String> allowedHeaders;
	private Long maxAge;
	private String filterPath;

}
